﻿using BTechBids.DataModels;
using BTechBids.Web.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BTechBids.Web.IDataAdapters.Interfaces
{
    public interface IItemAdapter
    {
        List<String> GetBidHistory(int id);
        ItemVM AddItem(ItemVM item);
        List<Models.ItemVM> GetAllItems();
        Models.ItemVM GetItem(int id);
        void UpdateItemOnBid(ItemQuickUpdateVM biditem);
        void FinalizeAuctionForItem(ItemVM itemVM);
        ItemVM UpdateItem(ItemVM itemvm);
        void DeleteItem(int id);


        List<ItemUserVM> GetUserWins(string username);
        int GetUserBids(string username);
        Models.UserVM UpdateUserAccount(string username, int addBids = 0, double addOrSubtractMoney = 0);
        void SettleUserAccount(string username);

        List<Models.ItemVM> GetAllItemsForAdmin();

        List<Models.UserVM> GetAllUsers();
        
    }
}
